package oceanwiki.service;

import oceanwiki.entity.Doc;
import com.baomidou.mybatisplus.extension.service.IService;
import oceanwiki.req.DocQueryReq;
import oceanwiki.req.DocSaveReq;
import oceanwiki.resp.DocQueryResp;
import oceanwiki.resp.PageResp;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XBJ
 * @since 2024-09-07
 */
public interface IDocService extends IService<Doc> {

    PageResp<DocQueryResp> listByName(DocQueryReq req);

    List<DocQueryResp> all(Long ebookId);


    void save(DocSaveReq req);

    void delete(List<Long> ids);

    void vote(Long id);

    void updateEbookInfo();

}
